import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/layout'
    },
    {
      path: "/layout",
      name: "layout",
      component: () => import("../views/pageIndex/MainPage.vue")
    },
    {
      path: "/login",
      name: "login",
      component: () => import("../views/Login/LoginMain.vue")
    }
    // {
    //   path: '/react',
    // },
    // {
    //   path: '/vue'
    // }
  ],
})

export default router
